passing value to a function in c